# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0804-05.py
    ======================
    @descript: 形参的类型
    @copyright:nnz
    @author:dln
    @date: 2021/8/4 19:45
    @version:v1.0
'''
#必须参数  代表的是要必须有传参
def f_01(v1,v2):
    print(v1,v2)
    pass
f_01(1,4)
f_01(v1=2,v2=6)
#不定长参数
#函数的参数个数是不确定
def f_02(v1,v2,*args):
    print(v1,v2,*args)
    for v_index,v_element in enumerate(args):
        print('{}={}'.format(v_index,v_element))
        pass
    pass
f_02(1,2,3,4)
# v_list=(3,4)
# 集合
v_list={3,4}
# f_02(1,2,v_list[0],v_list[1])
f_02(1,2,*v_list)

